﻿<Window x:Class="Brjnk.GpxExplorer.UI.DeleteOldCacheWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:l="clr-namespace:Brjnk.GpxExplorer.Localization"
        Title="{l:Loc titleDeleteOldCache}"
        MinWidth="300"
        ResizeMode="NoResize"
        SizeToContent="WidthAndHeight">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock MaxWidth="500"
                   Style="{StaticResource HeaderStyle}"
                   Text="{Binding FileName}" />
        <TextBlock Grid.Row="1"
                   HorizontalAlignment="Right"
                   Text="{Binding FileSize,
                                  Converter={StaticResource DataLengthConverter}}" />
        <TextBlock Grid.Row="2"
                   Text="{l:Loc deleteOldCacheInfo}"
                   TextWrapping="Wrap" />
        <UniformGrid Grid.Row="3"
                     HorizontalAlignment="Right"
                     Columns="2">
            <Button Click="Button_Click" Content="{l:Loc yes}" />
            <Button Click="Button_Click_1" Content="{l:Loc no}" />
        </UniformGrid>
    </Grid>
</Window>